package cn.boltzjf.sql4j.examples.postgres.db;

import static cn.boltzjf.sql4j.coltype.DefaultColumnTypes.*;

import java.sql.Timestamp;
import java.util.UUID;

import cn.boltzjf.sql4j.Column;
import cn.boltzjf.sql4j.Table;

public abstract class BaseTable extends Table {

    public BaseTable(String name) {
        super(name);
    }

    public final Column<UUID> tenantId = defineColumn("tenant_id", UUID, UUID.class);
    public final Column<Boolean> deleted = defineColumn("deleted", BOOLEAN, Boolean.class);
    public final Column<UUID> creatorId = defineColumn("creator_id", UUID, UUID.class);
    public final Column<Timestamp> createdTime = defineColumn("created_time", TIMESTAMP, Timestamp.class);
    public final Column<UUID> modifierId = defineColumn("modifier_id", UUID, UUID.class);
    public final Column<Timestamp> modifiedTime = defineColumn("modified_time", TIMESTAMP, Timestamp.class);
}
